import request from '@/utils/request'

// 查询提前下课记录 列表
export function listDailyInspectionOutclass(query) {
  return request({
    url: '/patrol/dailyInspectionOutclass/list',
    method: 'get',
    params: query
  })
}

// 查询提前下课记录 详细
export function getDailyInspectionOutclass(id) {
  return request({
    url: '/patrol/dailyInspectionOutclass/' + id,
    method: 'get'
  })
}

// 新增提前下课记录 
export function addDailyInspectionOutclass(data) {
  return request({
    url: '/patrol/dailyInspectionOutclass',
    method: 'post',
    data: data
  })
}

// 修改提前下课记录 
export function updateDailyInspectionOutclass(data) {
  return request({
    url: '/patrol/dailyInspectionOutclass',
    method: 'put',
    data: data
  })
}

// 删除提前下课记录 
export function delDailyInspectionOutclass(id) {
  return request({
    url: '/patrol/dailyInspectionOutclass/' + id,
    method: 'delete'
  })
}

// 获取提前下课情况记录表
export function getOutclassTable(data) {
  return request({
    url: '/patrol/dailyInspectionOutclass/getOutclassTable',
    method: 'get',
    params: data
  })
}